{* merchandise_list *}
{load_presentation_object filename="merchandise_list" assign="obj"}
{* Start merchandise list here *}    
{if $obj->mrTotalPages > 1}
    <p>Page {$obj->mPage} of {$obj->mrTotalPages}
    {if $obj->mLinkToPreviousPage}
        <a href="{$obj->mLinkToPreviousPage}">Previous</a>
    {else}
        Previous
    {/if}   
    {if $obj->mLinkToNextPage}
        <a href="{$obj->mLinkToNextPage}">Next</a>
    {else}
        Next
    {/if} 
    </p>
{/if}
{if $obj->mMerchandising}   
<table class="merchandise-list" border="0">
    <thead>
        <tr>
            <th>Band</th>
            <th>Title</th>
            <th>Price</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
    {* Loop through the list of merchandise *}
    {section name=i loop=$obj->mMerchandising}  
        <tr>
            {* Generate a link for a new merchandise in the list *}
            <th width="40%">
            {$obj->mMerchandising[i].name} ({$obj->mMerchandising[i].origin}) </th><th width="60%"><a href="{$obj->mMerchandising[i].link_to_merchandise}">{$obj->mMerchandising[i].title}</a></th> 
            <th>&#8364;{$obj->mMerchandising[i].price}    </th><th></th>
        </tr>
    {/section} 
    </tbody>
</table>
{/if}
{* End merchandise list *}
